< previous page page_244 next page >

Page 244
OLE DB uses the Component Object Model (COM) as an underlying technology. By utilizing these services, much of the duplication between different data access tools can be eliminated. Also, because COM is a standard thats licensed to standards organizations, it can become a cross-platform standard as other companies jump on the band wagon. This will make your code more portable between different programming environments and tools.
ActiveX Data Objects
ADO is what youll use from Visual Basic to get at data. You, as a Visual Basic programmer, cannot program the OLE DB layer directly (nor would you want to). This layer is reserved for C++ programmers. Instead, youll use ADO for all your data manipulation.
ADO is an interface to the OLE DB layer that utilizes a provider to retrieve and update data in a data source. There are a couple of native providers that allow direct access to SQL Server, Oracle, and Microsoft Access MDBs. There is also the Microsoft ODBC provider for OLE DB. This provider allows you to establish a connection to a data source via ODBC. Because ODBC supplies drivers for many different data sources, you can use ADO to manipulate a wide variety of databases.
ADOs primary advantage over other database access methods is its ease of use, high speed, low memory overhead, and small disk footprint. Also, because its an object-based data access method, its easy to learn. The learning curve for Jet programmers will be low since ADO uses an object model just like Jet does. While the object model is different, it is still easy to learn.
ADO Features
ADO has several features that make it an ideal object model for building client/server and Web-based applications. Heres a list of some of these features:
Small object model, which makes it easy to learn.
Low memory footprint, so more memory is freed up for your application.
Fast access to a data source.
Connections can be established on-the-fly, which is great for Web-based applications.
Different cursor types are supported, including server-side and client-side cursors.

 
< previous page page_244 next page >

If you like this book, buy it!